package edu.ynmd.cms.Dao;


import edu.ynmd.cms.model.Users;
import org.apache.catalina.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UsersDao extends JpaRepository<Users,String> {
    @Query("select u from Users u where u.username=:username and u.password=:password")
    Users getUsersByUsernameAnAndAndPassword(@Param("username")String username,@Param("password")String password);
}
